<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE HTML>
<html>
<head>
  <title>后台管理系统</title>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <link href="/resources/css/dpl-min.css" rel="stylesheet" type="text/css" />
  <link href="/resources/css/bui-min.css" rel="stylesheet" type="text/css" />
  <link href="/resources/css/page-min.css" rel="stylesheet" type="text/css" />
</head>
<body>

<div class="container">
  <form id="J_Form" class="form-horizontal" action="/transfer/save">
    <h3>购物币转账申请信息</h3>
    <input type="hidden" name="id" id="id" value="${data.id}"/>
    <div class="row">
      <div class="control-group span12">
        <label class="control-label">申请微信账号：</label>
        <div style="display:inline;height:40px;margin-left: 10px;">
          ${data.userNickName}
        </div>
      </div>
    </div>

    <div class="row">
      <div class="control-group span12">
        <label class="control-label">申请转账金额：</label>
        <div style="display:inline;height:40px;margin-left: 10px;">
          ${data.amount}
        </div>
      </div>
    </div>

    <div class="row">
      <div class="control-group span12">
        <label class="control-label">可转现金币：</label>
        <div style="display:inline;height:40px;margin-left: 10px;">
          ${data.cashAmount}
        </div>
      </div>
    </div>

    <div class="row">
      <div class="control-group span12">
        <label class="control-label">申请时间：</label>
        <div style="display:inline;height:40px;margin-left: 10px;">
          ${data.dateStr}
        </div>
      </div>
    </div>

    <div class="row">
      <div class="control-group span12">
        <label class="control-label">当前状态：</label>
        <div style="display:inline;height:40px;margin-left: 10px;">
          <c:if test="${data.status eq '0'}">待审核</c:if>
          <c:if test="${data.status eq '1'}">审核通过</c:if>
          <c:if test="${data.status eq '2'}">审核拒绝</c:if>
        </div>
      </div>
    </div>


    <div class="row">
      <div class="control-group span12">
        <label class="control-label">申请备注信息：</label>
        <div style="display:inline;height:40px;margin-left: 10px;">
          ${data.remark}
        </div>
      </div>
    </div>

    <c:if test="${data.status ne '0'}">
      <div class="row">
        <div class="control-group span12">
          <label class="control-label">审核时间：</label>
          <div style="display:inline;height:40px;margin-left: 10px;">
              ${data.shDateStr}
          </div>
        </div>
      </div>
      <div class="row">
        <div class="control-group span12">
          <label class="control-label">审核意见：</label>
          <div style="display:inline;height:40px;margin-left: 10px;">
              ${data.bz}
          </div>
        </div>
      </div>
    </c:if>

    <c:if test="${data.status eq '0'}">
      <h3>处理意见</h3>
      <div class="row">
        <div class="control-group span12">
          <label class="control-label">是否通过：</label>
          <div style="display:inline;height:40px;margin-left: 10px;">
            <select name="status" id="status">
              <option value="1">审核通过</option>
              <option value="2">审核拒绝</option>
            </select>
          </div>
        </div>
      </div>

      <div class="row" style="margin-top: 10px;">
        <div class="control-group span20">
          <label class="control-label">处理意见：</label>
          <div style="display:inline;height:40px;margin-left: 10px;">
            <input type="text" name="bz" id="bz" class="span8 span-width control-text bui-form-field"/>
          </div>
        </div>
      </div>
    </c:if>


    <div class="row form-actions actions-bar">
      <div class="span13 offset3 ">
        <c:if test="${data.status eq '0'}">
          <button type="submit" class="button button-primary">确定</button>
        </c:if>
        <button type="button" class="button" onclick="back()">返回</button>
      </div>
    </div>
  </form>
</div>
<script type="text/javascript" src="/resources/js/jquery-1.8.1.min.js"></script>
<script type="text/javascript" src="/resources/js/sea.js"></script>
<script type="text/javascript" src="/resources/js/bui-min.js"></script>
<script type="text/javascript" src="/resources/js/config-min.js"></script>


<script type="text/javascript">
  BUI.use('common/page'); //页面链接跳转
  BUI.use(['bui/tree','bui/form','bui/select','bui/data'],function (Tree,Form,Select,Data) {

    var form = new Form.HForm({
      srcNode : '#J_Form',
      submitType:"ajax",
      listeners:{
        beforesubmit:function(){

          return true;
        }
      },
      callback:function(data){
        BUI.Message.Alert(data.msg,function(){
          if(data.success){
            back();
          }
        },'info');
      }
    });

    form.render();
  });

  function back(){
    top.topManager.openPage({
      id : 'transfer_list',
      isClose : true
    });
    top.topManager.reloadPage('transfer_list');
  }


</script>

</body>
</html> 